//
//  RNOLSettingPayPasswordViewController.m
//  RongNiuOnline
//
//  Created by apple on 2018/4/18.
//  Copyright © 2018年 rongniu. All rights reserved.
//

#import "RNOLSettingPayPasswordViewController.h"
#import "RNOLResetPayPasswordView.h"
#import "RNOLSettingSuccessTipView.h"

@interface RNOLSettingPayPasswordViewController ()

@property (nonatomic,strong) RNOLResetPayPasswordView *resetPassWordView;

@end

@implementation RNOLSettingPayPasswordViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = kBgColor;
    [self setupNavBarTitleViewWithText:@"设置支付密码"];
    [self setup];
    
}

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [IQKeyboardManager sharedManager].enableAutoToolbar = NO;
}

- (void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    [IQKeyboardManager sharedManager].enableAutoToolbar = YES;
}


- (void)setup{
    RNOLResetPayPasswordView *resetPassWordView = [RNOLResetPayPasswordView FromXIB];
    resetPassWordView.frame = CGRectMake(0, 0, KWIDTH , KHIGHT);
    [self.view addSubview: resetPassWordView];
    self.resetPassWordView = resetPassWordView;
    
    [resetPassWordView setCompetedBlock:^{
        [RNOLSettingSuccessTipView showAlert:^{
            [self showStatusTipWithText:@"设置成功!"];
        }];        
    }];
    
}



@end
